<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" session="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Admin Page</title>
</head>
<style = "text/css">
body{
background-color:#384048;
color:#D3D3D3;
}
#d1{
color:#D3D3D3;
}
#u{
color:#D3D3D3;
font-size:20px;
}
#a{
font-size:20px;
}
</style>

<body>
<div id="u">
<%
    String u = "";
    HttpSession s1 = request.getSession(false);
    if(s1==null){
    	request.setAttribute("vmsg", "Your session has expired. Please login to continue.");
    	request.getRequestDispatcher("login.jsp").forward(request,response);
    	return;
    }
    u = (String) s1.getAttribute("uname");
    
%>
Active user: <%= u %>
<a href="logout.jsp" style="color:#5F9EA0;"">Logout (<%= u %>)</a>
</div>

<div id="d1" align="center" style="font-size:80px; font-style:bold;"">
A Journey of a Thousand Songs
</div>
<h1 align="center">Admin Page</h1>
<a id ="a" href="viewuser.jsp" style="color:#5F9eA0">View User Info</a><br>
<a id ="a" href="updateuser.jsp" style="color:#5F9eA0">Update User Info</a><br>
<a id ="a" href="deleteuser.jsp" style="color:#5F9eA0">Delete User Info</a><br>
</body>
</html>